<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>SqlStatementResult class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysql-xdevapi-sqlstatement.hasmoreresults.html">« SqlStatement::hasMoreResults</a></li>
      <li style="float: right;"><a href="mysql-xdevapi-sqlstatementresult.construct.html">SqlStatementResult::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mysql-xdevapi.html">Mysql_xdevapi</a></li>
    <li>SqlStatementResult class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.mysql-xdevapi-sqlstatementresult" class="reference">

 <h1 class="title">SqlStatementResult class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mysql-xdevapi &gt;= 8.0.11)</p>


  <div class="section" id="mysql-xdevapi-sqlstatementresult.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="mysql-xdevapi-sqlstatementresult.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">mysql_xdevapi\SqlStatementResult</strong>
     </span>
     
     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.mysql-xdevapi-baseresult.html" class="interfacename">mysql_xdevapi\BaseResult</a></span><span class="oointerface">,  <a href="class.traversable.html" class="interfacename">Traversable</a></span> {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>fetchAll</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>fetchOne</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getAffectedItemsCount</strong></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getColumnsCount</strong></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getColumnNames</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getColumns</strong></span>(): <span class="type">Array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getGeneratedIds</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getLastInsertId</strong></span>(): <span class="type">String</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getWarnings</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getWarningCounts</strong></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>hasData</strong></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>nextResult</strong></span>(): <span class="type"><a href="class.mysql-xdevapi-result.html" class="type mysql_xdevapi\Result">mysql_xdevapi\Result</a></span></div>

   }</div>


  </div>

 </div>

 




























































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="mysql-xdevapi-sqlstatementresult.construct.html">SqlStatementResult::__construct</a> — Description constructor</li><li><a href="mysql-xdevapi-sqlstatementresult.fetchall.html">SqlStatementResult::fetchAll</a> — Get all rows from result</li><li><a href="mysql-xdevapi-sqlstatementresult.fetchone.html">SqlStatementResult::fetchOne</a> — Get single row</li><li><a href="mysql-xdevapi-sqlstatementresult.getaffecteditemscount.html">SqlStatementResult::getAffectedItemsCount</a> — Get affected row count</li><li><a href="mysql-xdevapi-sqlstatementresult.getcolumncount.html">SqlStatementResult::getColumnsCount</a> — Get column count</li><li><a href="mysql-xdevapi-sqlstatementresult.getcolumnnames.html">SqlStatementResult::getColumnNames</a> — Get column names</li><li><a href="mysql-xdevapi-sqlstatementresult.getcolumns.html">SqlStatementResult::getColumns</a> — Get columns</li><li><a href="mysql-xdevapi-sqlstatementresult.getgeneratedids.html">SqlStatementResult::getGeneratedIds</a> — Get generated ids</li><li><a href="mysql-xdevapi-sqlstatementresult.getlastinsertid.html">SqlStatementResult::getLastInsertId</a> — Get last insert id</li><li><a href="mysql-xdevapi-sqlstatementresult.getwarnings.html">SqlStatementResult::getWarnings</a> — Get warnings from last operation</li><li><a href="mysql-xdevapi-sqlstatementresult.getwarningcount.html">SqlStatementResult::getWarningsCount</a> — Get warning count from last operation</li><li><a href="mysql-xdevapi-sqlstatementresult.hasdata.html">SqlStatementResult::hasData</a> — Check if result has data</li><li><a href="mysql-xdevapi-sqlstatementresult.nextresult.html">SqlStatementResult::nextResult</a> — Get next result</li></ul>
</div>
</div></div></body></html>